<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <meta name="description" content="1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071import requestsimport threadingimport timeimport jsonimport reheade">
<meta name="keywords" content="Python,爬虫">
<meta property="og:type" content="article">
<meta property="og:title" content="Python利用ip代理和多线程批量爬取中国联通手机欠费金额">
<meta property="og:url" content="http:&#x2F;&#x2F;yoursite.com&#x2F;2019&#x2F;09&#x2F;26&#x2F;Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D&#x2F;index.html">
<meta property="og:site_name" content="ECIN&#39;S BLOG">
<meta property="og:description" content="1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071import requestsimport threadingimport timeimport jsonimport reheade">
<meta property="og:locale" content="en">
<meta property="og:updated_time" content="2019-11-02T06:56:22.000Z">
<meta name="twitter:card" content="summary">
    
    
        
          
              <link rel="shortcut icon" href="/images/favicon.ico">
          
        
        
          
            <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
          
        
        
          
            <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
          
        
    
    <!-- title -->
    <title>Python利用ip代理和多线程批量爬取中国联通手机欠费金额</title>
    <!-- styles -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- persian styles -->
    
      <link rel="stylesheet" href="/css/rtl.css">
    
    <!-- rss -->
    
    
</head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" href="/2019/09/29/%E3%80%90%E8%BD%AC%E8%BD%BD%E3%80%91Shell%E6%95%99%E7%A8%8B/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" href="/2019/09/26/Linux%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/" target="_blank" rel="noopener"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&text=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&is_video=false&description=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Python利用ip代理和多线程批量爬取中国联通手机欠费金额&body=Check out this article: http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/" target="_blank" rel="noopener"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&name=Python利用ip代理和多线程批量爬取中国联通手机欠费金额&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&t=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        Python利用ip代理和多线程批量爬取中国联通手机欠费金额
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">ECIN'S BLOG</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2019-09-26T11:53:07.000Z" itemprop="datePublished">2019-09-26</time>
        
      
    </div>


      

      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link" href="/tags/Python/" rel="tag">Python</a>, <a class="tag-link" href="/tags/%E7%88%AC%E8%99%AB/" rel="tag">爬虫</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> requests</span><br><span class="line"><span class="keyword">import</span> threading</span><br><span class="line"><span class="keyword">import</span> time</span><br><span class="line"><span class="keyword">import</span> json</span><br><span class="line"><span class="keyword">import</span> re</span><br><span class="line">headers=&#123;<span class="string">'Host'</span>: <span class="string">'upay.10010.com'</span>,</span><br><span class="line">         <span class="string">'Connection'</span>: <span class="string">'keep-alive'</span>,</span><br><span class="line">         <span class="string">'Accept'</span>: <span class="string">'application/json, text/javascript, */*; q=0.01'</span>,</span><br><span class="line">         <span class="string">'X-Requested-With'</span>: <span class="string">'XMLHttpRequest'</span>,</span><br><span class="line">         <span class="string">'User-Agent'</span>: <span class="string">'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36'</span>,</span><br><span class="line">         <span class="string">'Referer'</span>: <span class="string">'https://upay.10010.com/npfweb/npfcellweb/phone_recharge_fill.htm?orignalresource=2&amp;&amp;menuId=000200010001'</span>,</span><br><span class="line">         <span class="string">'Accept-Encoding'</span>: <span class="string">'gzip, deflate, br'</span>,</span><br><span class="line">         <span class="string">'Accept-Language'</span>: <span class="string">'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7'</span>,</span><br><span class="line">         <span class="string">'Cookie'</span>: <span class="string">'guide=true; _ga=GA1.3.1569055016.1563425338; _gid=GA1.3.633029321.1563425338; upay_user=7c7fb8c695025f3067ef351c0e51d227;'</span></span><br><span class="line">                   <span class="string">' Hm_lvt_9208c8c641bfb0560ce7884c36938d9d=1563425337,1563430251; userprocode=011; WT_FPC=id=223f99418025a5b0eec1563425337040:'</span></span><br><span class="line">                   <span class="string">'lv=1563431506689:ss=1563429776032; Hm_lpvt_9208c8c641bfb0560ce7884c36938d9d=1563431507'</span></span><br><span class="line">         &#125;</span><br><span class="line"></span><br><span class="line">proxy = &#123;&#125;</span><br><span class="line">list = [] <span class="comment">#存放ipport的列表</span></span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">changeIpAgent</span><span class="params">()</span>:</span></span><br><span class="line">    <span class="keyword">try</span>:</span><br><span class="line">        print(<span class="string">'刷新列表代理......'</span>)</span><br><span class="line">        agentUrl = <span class="string">'http://api.xdaili.cn/xdaili-api//greatRecharge/getGreatIp?spiderId=78ed47cf35344275abaa587c690c9b9b&amp;orderno=YZ2019390313Uw'</span> \</span><br><span class="line">                   <span class="string">'ovuH&amp;returnType=2&amp;count=10'</span></span><br><span class="line">        content = requests.get(agentUrl)</span><br><span class="line">        jsonContent = json.loads(content.text)</span><br><span class="line">        <span class="keyword">for</span> i <span class="keyword">in</span> jsonContent[<span class="string">'RESULT'</span>]:</span><br><span class="line">            list.append(i[<span class="string">'ip'</span>] + <span class="string">':'</span> + i[<span class="string">'port'</span>])</span><br><span class="line">        <span class="keyword">return</span></span><br><span class="line">    <span class="keyword">except</span>:</span><br><span class="line">        time.sleep(<span class="number">4</span>)</span><br><span class="line">        print(<span class="string">'error once'</span>)</span><br><span class="line">        changeIpAgent()</span><br><span class="line"></span><br><span class="line"><span class="function"><span class="keyword">def</span> <span class="title">getArrears</span><span class="params">(telphone_number)</span>:</span></span><br><span class="line">    f = open(<span class="string">'out.txt'</span>, <span class="string">'a+'</span>)</span><br><span class="line">    <span class="keyword">try</span>:</span><br><span class="line">        url = <span class="string">'https://upay.10010.com/npfweb/NpfWeb/Mustpayment/getMustpayment?number='</span> + telphone_number + <span class="string">'&amp;province=&amp;GET'</span></span><br><span class="line">        response = requests.get(url, headers=headers, proxies=proxy)</span><br><span class="line">        mustPay = re.findall(<span class="string">r'mustPay":"(.*?)"'</span>, response.text)[<span class="number">0</span>]</span><br><span class="line">        out = re.findall(<span class="string">r'out":"(.*?)"'</span>, response.text)[<span class="number">0</span>]</span><br><span class="line">        f.write(telphone_number+<span class="string">' '</span> + mustPay + <span class="string">' '</span> + out+<span class="string">'\n'</span>)</span><br><span class="line">        print(telphone_number+<span class="string">' '</span> + mustPay + <span class="string">' '</span> + out)</span><br><span class="line">    <span class="keyword">except</span>:</span><br><span class="line">        <span class="comment"># 失败则移除队首</span></span><br><span class="line"></span><br><span class="line">        <span class="comment">#如果队列长度为0</span></span><br><span class="line">        <span class="keyword">if</span> len(list) == <span class="number">0</span>:</span><br><span class="line">            changeIpAgent()</span><br><span class="line">        <span class="keyword">else</span>:</span><br><span class="line">            list.remove(list[<span class="number">0</span>])</span><br><span class="line">            proxy[<span class="string">'https'</span>]=list[<span class="number">0</span>]</span><br><span class="line">        <span class="comment"># print(telphone_number+' null fail')</span></span><br><span class="line">        getArrears(telphone_number)</span><br><span class="line">        f.close()</span><br><span class="line">    <span class="comment"># finally:</span></span><br><span class="line">    <span class="comment">#     f.close()</span></span><br><span class="line"></span><br><span class="line">numbers=[]</span><br><span class="line"><span class="keyword">with</span> open(<span class="string">'telphone.txt'</span>,<span class="string">'r'</span>) <span class="keyword">as</span> file:</span><br><span class="line">    <span class="keyword">for</span> line <span class="keyword">in</span> file:</span><br><span class="line">        numbers.append(line.strip())</span><br><span class="line"></span><br><span class="line">changeIpAgent()</span><br><span class="line"></span><br><span class="line"><span class="keyword">for</span> number <span class="keyword">in</span> numbers:</span><br><span class="line">    task=threading.Thread(target=getArrears,args=(number,))</span><br><span class="line">    task.start()</span><br><span class="line">    time.sleep(<span class="number">1</span>)</span><br></pre></td></tr></table></figure>
  </div>
</article>



        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" href="http://www.facebook.com/sharer.php?u=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/" target="_blank" rel="noopener"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://twitter.com/share?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&text=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.linkedin.com/shareArticle?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://pinterest.com/pin/create/bookmarklet/?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&is_video=false&description=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Python利用ip代理和多线程批量爬取中国联通手机欠费金额&body=Check out this article: http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/" target="_blank" rel="noopener"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://getpocket.com/save?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://reddit.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.stumbleupon.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://digg.com/submit?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&title=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="http://www.tumblr.com/share/link?url=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&name=Python利用ip代理和多线程批量爬取中国联通手机欠费金额&description=" target="_blank" rel="noopener"><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="https://news.ycombinator.com/submitlink?u=http://yoursite.com/2019/09/26/Python%E5%88%A9%E7%94%A8ip%E4%BB%A3%E7%90%86%E5%92%8C%E5%A4%9A%E7%BA%BF%E7%A8%8B%E6%89%B9%E9%87%8F%E7%88%AC%E5%8F%96%E4%B8%AD%E5%9B%BD%E8%81%94%E9%80%9A%E6%89%8B%E6%9C%BA%E6%AC%A0%E8%B4%B9%E9%87%91%E9%A2%9D/&t=Python利用ip代理和多线程批量爬取中国联通手机欠费金额" target="_blank" rel="noopener"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy; 2020 ECIN520
  </div>
  <div class="footer-right">
    <nav>
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Writing</a></li>
         
          <li><a href="/projects_url">Projects</a></li>
        
      </ul>
    </nav>
  </div>
</footer>

    </div>
    <!-- styles -->
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
<link rel="stylesheet" href="/lib/justified-gallery/css/justifiedGallery.min.css">

    <!-- jquery -->
<script src="/lib/jquery/jquery.min.js"></script>
<script src="/lib/justified-gallery/js/jquery.justifiedGallery.min.js"></script>
<!-- clipboard -->

  <script src="/lib/clipboard/clipboard.min.js"></script>
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>

<script src="/js/main.js"></script>
<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

<!-- Disqus Comments -->


</body>
</html>
